package adv5;

import java.io.*;

public class FileInput {

	public static void main(String[] args) {
		try {
			FileInputStream fin = new FileInputStream("E:\\Temp\\String.txt");
			int ch = 0;
			while ((ch = fin.read()) != -1) {
				System.out.print((char) ch);
			}
//			int i = fin.read();
//			int j = fin.read();
//			System.out.println("i=" + i + ",j=" + j);
//			int k = fin.read();
//			System.out.println("k=" + k + "," + (char) k);
			fin.close();// 有隐患
		} catch (Exception e) {
			//
			e.printStackTrace();
		}

	}

}
